Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Fix error message in PromoteTransactionCommand #313

Merged
merged 2 commits into from
Feb 27, 2020

Conversation

lzpap
Copy link
Member

@lzpap lzpap commented Feb 26, 2020

Fixes: #311

Description

Include the reason from the info field of the CheckConsistencyCommand response.

This can be for example that the transaction is below max depth, the bundle is invlaid, or the transaction is not solid. This last one happens when one tries to immediately promote a transaction after it has just been broadcast and stored.

IRI Reference:
https://github.com/iotaledger/iri/blob/eb4e1a4409bbf74cc0198c5f2bd1a05524f81f4f/src/main/java/com/iota/iri/service/API.java#L388-L408

 - mocked cc call didn't contain 'info' key
Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lzpap lzpap merged commit 0f15772 into iotaledger:develop Feb 27, 2020
@lzpap lzpap mentioned this pull request Mar 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants